package sphere.model;

public class Sphere {
	double rayon;
	
	public Sphere(double rayon)
	{
		this.rayon=rayon;
	}

	public double getRayon() {
		return rayon;
	}

	public void setRayon(double rayon) {
		this.rayon = rayon;
	}
	
	public double calculSurface()
	{
		double surface = (4*Math.PI)*(Math.pow(rayon,2));
		return surface;
		
	}
	
	public double calculVolume()
	{
		double volume = (4/3)*(Math.PI)*(Math.pow(rayon, 3));
		return volume;
		
	}

}
